package com.loong.web.gp4j.bean.param.messages;

import java.util.Set;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 消息发布参数
 *
 * @author 张成轩
 */
public class MessagePublishParam {

	private Integer id;
	private Set<Integer> auths;

	/**
	 * @return 消息id
	 */
	@NotNull(message = "消息id不能为空")
	public Integer getId() {

		return id;
	}

	/**
	 * @param id 消息id
	 */
	public void setId(Integer id) {

		this.id = id;
	}

	/**
	 * @return 发送权限
	 */
	@Size(min = 1, message = "发送权限不能为空")
	public Set<Integer> getAuths() {

		return auths;
	}

	/**
	 * @param auths 发送权限
	 */
	public void setAuths(Set<Integer> auths) {

		this.auths = auths;
	}
}
